package com.shelpe.services.sinbadgateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableOAuth2Client;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

import com.shelpe.services.sinbadgateway.configuration.AutoDriveProperties;

@SpringBootApplication
@EnableZuulProxy
@EnableEurekaClient
@EnableFeignClients(basePackages="com.shelpe.services.sinbadgateway.client")
@EnableResourceServer
@EnableOAuth2Client
@EnableConfigurationProperties(AutoDriveProperties.class)
public class SinbadApplication {

	public static void main(String[] args) {
		SpringApplication.run(SinbadApplication.class, args);
	}

}
